import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EchartUseComponent } from './echart-use/echart-use.component';
import { EchartDirectiveComponent } from './echart-directive/echart-directive.component';
import { EchartDynamicComponent } from './echart-dynamic/echart-dynamic.component';
import { EchartChildComponent } from './echart-child/echart-child.component';
import { EchartLiquidfillComponent } from './echart-liquidfill/echart-liquidfill.component';
import { EchartExamplesComponent } from './echart-examples/echart-examples.component';

const routes: Routes = [
    {
        path: '',
        pathMatch: 'full',
        redirectTo: 'echartsUse',
    },
    { path: 'echartsUse', component: EchartUseComponent },
    { path: 'directive', component: EchartDirectiveComponent },
    { path: 'dynamic', component: EchartDynamicComponent },
    { path: 'echartChild', component: EchartChildComponent },
    { path: 'liquidfill', component: EchartLiquidfillComponent },
    { path: 'examples', component: EchartExamplesComponent },
];
@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule],
})
export class EchartsRoutingModule {}
